SyntheticFutureQuote
Live synthetic future quotes are SpiderRock implied futures quotes derived from roll prices.
METADATA
Attribute | Value |
---|---|
Topic | 2675-market-data-index |
MLink Token | ClientLive |
Product | SRLive |
accessType | SELECT |
Table Definition
Field | Type | Key | Default Value | Comment |
---|---|---|---|---|
fkey_at | enum - AssetType | PRI | 'None' | ccode expiry |
fkey_ts | enum - TickerSrc | PRI | 'None' | ccode expiry |
fkey_tk | VARCHAR(12) | PRI | '' | ccode expiry |
fkey_yr | SMALLINT UNSIGNED | PRI | 0 | ccode expiry |
fkey_mn | TINYINT UNSIGNED | PRI | 0 | ccode expiry |
fkey_dy | TINYINT UNSIGNED | PRI | 0 | ccode expiry |
bidPrice | DOUBLE | 0 | best implied future bid price adjusted for option expiry | |
askPrice | DOUBLE | 0 | best implied future ask price adjusted for option expiry | |
bidSize | INT | 0 | best implied future bid size | |
askSize | INT | 0 | best implied future ask size | |
bidSource | enum - SyntheticSource | 'None' | ||
askSource | enum - SyntheticSource | 'None' | ||
marketStatus | enum - MarketStatus | 'None' | composite market status of all dependent markets | |
netTimestamp | BIGINT | 0 | most recent net timestamp of any market affecting this record |
PRIMARY KEY DEFINITION (Unique)
Field | Sequence |
---|---|
fkey_tk | 1 |
fkey_yr | 2 |
fkey_mn | 3 |
fkey_dy | 4 |
fkey_at | 5 |
fkey_ts | 6 |
CREATE TABLE EXAMPLE QUERY
CREATE TABLE `SRLive`.`MsgSyntheticFutureQuote` (
`fkey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'ccode + expiry',
`fkey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'ccode + expiry',
`fkey_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'ccode + expiry',
`fkey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'ccode + expiry',
`fkey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'ccode + expiry',
`fkey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'ccode + expiry',
`bidPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'best implied future bid price (adjusted for option expiry)',
`askPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'best implied future ask price (adjusted for option expiry)',
`bidSize` INT NOT NULL DEFAULT 0 COMMENT 'best implied future bid size',
`askSize` INT NOT NULL DEFAULT 0 COMMENT 'best implied future ask size',
`bidSource` ENUM('None','Future','FutureRoll','Stock') NOT NULL DEFAULT 'None',
`askSource` ENUM('None','Future','FutureRoll','Stock') NOT NULL DEFAULT 'None',
`marketStatus` ENUM('None','PreOpen','PreCross','Cross','Open','Closed','Halted','AfterHours') NOT NULL DEFAULT 'None' COMMENT 'composite market status of all dependent markets',
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'most recent net timestamp of any market affecting this record',
PRIMARY KEY USING HASH (`fkey_tk`,`fkey_yr`,`fkey_mn`,`fkey_dy`,`fkey_at`,`fkey_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='Live synthetic future quotes are SpiderRock implied futures quotes derived from roll prices.';
SELECT TABLE EXAMPLE QUERY
SELECT
`fkey_at`,
`fkey_ts`,
`fkey_tk`,
`fkey_yr`,
`fkey_mn`,
`fkey_dy`,
`bidPrice`,
`askPrice`,
`bidSize`,
`askSize`,
`bidSource`,
`askSource`,
`marketStatus`,
`netTimestamp`
FROM `SRLive`.`MsgSyntheticFutureQuote`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`fkey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`fkey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`fkey_tk` = 'Example_fkey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`fkey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_dy` = 1;
Doc Columns Query
SELECT * FROM SRLive.doccolumns WHERE TABLE_NAME='SyntheticFutureQuote' ORDER BY ordinal_position ASC;